package com.healthcloud.dao.screening;

import com.healthcloud.dao.BaseDao;
import com.healthcloud.entity.screening.ScreeningBpEntity;
import com.healthcloud.entity.screening.ScreeningBpVo;
import com.healthcloud.utils.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 血压筛查
 * @author zhangjie
 */
public interface ScreeningBpDao extends BaseDao<ScreeningBpEntity> {

    ScreeningBpEntity queryByIdCard(String idCard);

    List<ScreeningBpVo> queryListVo(@Param("entity") ScreeningBpVo entity, @Param("pageParam") PageParam pageParam);

    Integer queryTotalVo(@Param("entity") ScreeningBpVo entity);

    ScreeningBpEntity monthReport(@Param("reportTime") String reportTime, @Param("idCard") String idCard);

    /**
     * 修改病人身份证号
     * @param oldIdCard 修改前身份证号
     * @param newIdCard 修改后身份证号
     */
    void updateIdCard(@Param("newIdCard") String newIdCard, @Param("oldIdCard") String oldIdCard);
}
